package com.tianxiao.faas.api.param.corner;

import java.io.Serializable;

public class ArticleResult implements Serializable {
    private static final long serialVersionUID = 2793834477339418982L;

    private Long id;

    private String name;

    private String img;

    private String content;

    private String desc;

    private String shopName;

    private String createTime;

    private String updateTime;

    private Boolean isImage;

    private boolean publish;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getIsImage() {
        return isImage;
    }

    public void setIsImage(Boolean image) {
        isImage = image;
    }

    public boolean getPublish() {
        return publish;
    }

    public void setPublish(boolean publish) {
        this.publish = publish;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void init(String title) {
        if (title != null) {
            String[] split = title.split(ArticleSaveParam.SLP);
            setName(split[0]);
            if (split.length > 1) {
                setDesc(split[1]);
            } else {

            }
        }
    }
}
